#ifndef INSA_H
#define INSA_H

#include <iostream>
#include "Task.h"

class Insa
{
public:
	Insa(Task **taskTable,int tasksCount,int machines);
	void Make();
	virtual ~Insa();
	int CMax();
private:
	int tasksCount;
	int machines;
	Task **machinesTable;
	Task **taskTable;
	Task *sortedTask;

	int Cmax;
	void RiQ(Task **table);
	void QuickSort(int x, int y);
};

#endif